Expression: 5 + 3
Result:
Expression: 10 - 2
Result:
Expression: 4 * 6
Result:
Expression: 8 / 2
Result:
Expression: 10 % 3
Result:
Example Code: Try running the below in the browser's JavaScript console to test it yourself:
Example:
// Define a constant and a variable
const pi = 3.14;
let radius = 5;
// Calculate the area of a circle
let area = pi * radius * radius;
// Output the area
console.log('The area of the circle is:', area);